package de.mmis.core.base.abstracttree.serializer.internal;

import java.util.Map;

import de.mmis.core.base.DeserializableAnnotations.DeserializationMethod;
import de.mmis.core.base.abstracttree.InnerNode;
import de.mmis.core.base.abstracttree.Tree;
import de.mmis.core.base.abstracttree.serializer.selector.ArraySelector;

/**
 * Deserializer class used for array deserialization
 * 
 * @author Christian Koch
 * 
 */
public class ArrayDeserializer {

	@DeserializationMethod
	public static Object deserialize(Tree[] exps,
			ClassLoader classLoader, String id, Map<String, Object> idmap) {

		return new ArraySelector(new InnerNode(exps), classLoader, id, idmap);
	}

}
